#ifndef __LCD_SRC_MANAGER_H__
#define __LCD_SRC_MANAGER_H__

#include "ugui.h"
#include "stdint.h"
#include "include_src.h"




   



extern struct src_head_t src_head;
extern struct src_addr_item_t src_addr_top_item_table[10];
extern struct src_addr_item_t src_addr_table;

extern tImage g_image_buffer;    // 用作图片缓冲区
extern tFont  g_font_buffer;     // 用作字体缓冲区

uint8_t src_manager_read_head(void);
uint8_t src_manager_read_addr_table(void);

uint8_t src_manager_show_image(uint16_t x, uint16_t y, char *name);
uint8_t src_manager_show_font_char(uint16_t x, uint16_t y, char *name, uint32_t code);          // 传入不带code的父节点的名字
uint8_t src_manager_show_String(uint16_t x,uint16_t y, const char *string, char *name);
uint8_t src_manager_show_code_array(uint16_t x, uint16_t y, const uint32_t *codes, uint16_t count, char *name_en, char *name_cn);

uint8_t src_manager_get_en_string_lenght(char *name, const char *string);
uint8_t src_manager_get_cn_char_lenght(char *name);

uint8_t src_manager_set_font_fore_color(UG_COLOR color);
uint8_t src_manager_set_font_back_color(UG_COLOR color); 



#endif







